<?php 
/**
 * [PHPFOX_HEADER]
 * 
 * @copyright		[PHPFOX_COPYRIGHT]
 * @author  		Raymond_Benc
 * @package 		Phpfox
 * @version 		$Id: template-notification.html.php 2838 2011-08-16 19:09:21Z Raymond_Benc $
 */
 
defined('PHPFOX') or exit('NO DICE!'); 

?>
<div id="header_menu_user_image_top">
        {img user=$aGlobalUser suffix='_50_square' max_width=32 max_height=32}
</div>
<div id="header_menu_user_profile_top">
        <?php echo '<span class="user_profile_link_span" id="js_user_name_link_' . $this->_aVars['aGlobalUser']['user_name'] . '"><a href="' . Phpfox::getLib('phpfox.url')->makeUrl('profile', array($this->_aVars['aGlobalUser']['user_name'], ((empty($this->_aVars['aGlobalUser']['user_name']) && isset($this->_aVars['aGlobalUser']['profile_page_id'])) ? $this->_aVars['aGlobalUser']['profile_page_id'] : null))) . '" onclick="window.location.href=\''.Phpfox::getLib('phpfox.url')->makeUrl('profile', array($this->_aVars['aGlobalUser']['user_name'], ((empty($this->_aVars['aGlobalUser']['user_name']) && isset($this->_aVars['aGlobalUser']['profile_page_id'])) ? $this->_aVars['aGlobalUser']['profile_page_id'] : null))).'\'">' . Phpfox::getLib('phpfox.parse.output')->shorten($this->_aVars['aGlobalUser']['full_name'], 20, '...') . '</a></span>'; ?>
</div>
<ul>
									{if Phpfox::getUserBy('profile_page_id') <= 0}
									{if Phpfox::isModule('friend')}
									{module name='friend.notify'}
									{/if}
									{if Phpfox::isModule('mail') && false}
									{module name='mail.notify'}
									{/if}
									{/if}
									{if Phpfox::isModule('notification')}
									{module name='notification.notify'}
									{/if}
</ul>